package com.ruoyi.finance.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.finance.domain.VoucherDetail;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @Author: qs
 * @Date: 2025/2/27 15:05
 * @Description:
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class VoucherDetailVo {
    /** 凭证id */
    private Long voucherId;

    /** 凭证字号 */
    @NotBlank(message = "凭证字号不能为空")
    private String voucherNo;

    /** 账期YYYYMM */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String accountPeriod;

    /** 附单据数量 */
    private Long attachmentCount;

    /** 合计金额 */
    private Double totalAmount;

    /** 账套ID */
    private Long accountId;

    /** 凭证字ID */
    private Long wordId;

    private List<VoucherDetail> voucherDetail;

}
